﻿// Copyright (c)  MOKEYISH. All rights reserved.
// Licensed under the MIT License, See License.txt in the project root for license information.

namespace NSQL.Expressions.Functions
{
    public class ToCharFunction : BaseExpression, IToCharFunction
    {
        public IValueExpression Expr { get; set; }
        public IStringExpression Formatter { get; set; }

        public ToCharFunction(IValueExpression expression, IStringExpression formatter)
        {
            Expr = expression;
            Formatter = formatter;
        }

        public override T Accept<T>(IExpressionVisitor<T> visitor) => visitor.Visit(this);
    }
}